
.PHONY: jsdoc

jsdoc : 
	java -jar tools/jsdoc-toolkit/jsrun.jar tools/jsdoc-toolkit/app/run.js -p -v --directory=jsdoc --template=tools/jsdoc-toolkit/templates/jsdoc/ app/js/


odd/jsdoc_pdf/%.pdf : jsdoc/symbols/%.html
	wkhtmltopdf $^ $@

pdfs := $(patsubst jsdoc/symbols/%.html,odd/jsdoc_pdf/%.pdf, $(wildcard jsdoc/symbols/*.html))

jsdoc_pdf : odd/jsdoc.pdf 


odd/jsdoc.pdf : $(pdfs)
	pdftk $^ cat output $@

